﻿<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page import="java.util.*,
                 com.kylin.common.*,
                 com.kylin.common.util.*,
				 com.kylin.common.dict.orm.Dict,
				 com.kylin.module.study.orm.Vocabulary
				 " %>
<%@ include file="/common/include/taglibs.jsp"%>
<%@ include file="/common/include/dictNames.jsp"%>
<%@ include file="/common/include/pageExpires.jsp"%>
 
<%Vocabulary vo = (Vocabulary)request.getAttribute(Constants.KEY_REQUEST_RESULT);%>
<br>
<mytag:MyActionMsg />
<html:form action="/admin/study/manageVocabulary.do?CMD=executeUpdate" method="post" enctype="multipart/form-data">
<input type="hidden" name="id" value="<%=vo.getId()%>">
	<table width="90%" cellspacing="0" cellpadding="0">
		<tr>
			<td class='pageTd' width="100">
				母语
			</td>
			<td>
				<%=UTool.getLanguageName(vo.getLanguage(),sessionLocale) %>
			</td>
		</tr>
		<tr>
			<td class='pageTd' width="100">
				学习语言
			</td>
			<td>
				<%=UTool.getLanguageName(vo.getTargetlang(),sessionLocale) %>
			</td>
		</tr>
		<tr>
			<td class='pageTd' width="100">
				词汇分类
			</td>
			<td>
				<mytag:select name="catvocabularyid" notEmpty="true"
					dictName="<%=dict_cat_study1%>" value="<%=(vo.getCatvocabulary().getId()).toString()%>"/>
			</td>
		</tr>
		<tr>
			<td class='pageTd' width="100">
				母语单词
			</td>
			<td>
				<html:text property="content" value="<%=vo.getContent() %>"/>
			</td>
		</tr>
		<tr>
			<td class='pageTd' width="100">
				学习语言单词
			</td>
			<td>
				<html:text property="translation" value="<%=vo.getTranslation() %>"/>
			</td>
		</tr>
		<tr>
			<td class='pageTd' width="100">
				语音上传
			</td>
			<td>
				<html:file property="audio" value="<%=vo.getAudio()%>"/>
			<%
		        if(vo.getAudio()!=null && !vo.getAudio().equals("") ){
		    %>			
					<a href="/admin/study/playMedia.jsp?fileType=<%=Constants.MEDIA_VOCABUL%>&fileUrl=<%=vo.getAudio()%>&imgpath<%=vo.getId()%>=<%=vo.getAudio() %>">
		        	<img src="/images/lessonpic01.gif" width="13" height="13" stype="cursor:hand"/>
		        </a>
		    <%
		        }
		    %>	
		</tr>
		<tr>
			<td colspan=2 align="center">
				<input type="submit" value="保存">
			</td>
		</tr>
	</table>
</html:form>
